//system.h

#ifndef __LPC_SYS
#define __LPC_SYS

// System initialization
void SysInit(void);

// Init frequency
void FreqInit(void);

// Init frequency
void FreqInit_DCO(void);
void FreqInit_LFXT1(void);

// Init Interrupts
void InitInterrupts(void);

//Simpe delay
void Delay (unsigned long a);

void timerA_settings(unsigned long period0, unsigned long period1);

//Start TimerA in up mode
void start_TimerA (void);

//Stop TimerA
void stop_TimerA (void);

//Reset TimerA
void reset_TimerA (void);

//timer_A interrupt enable
void timerA_IE(void);

//timer_A interrupt disable
void timerA_ID(void);

//inicializar uart
void initialize_usart(void);

//random number generator
unsigned char rand_1 (void);

//set seed for random number generator
void set_seed_1 (unsigned char seed);

#endif


